import Vue from 'vue'
import Vuex from 'vuex'
import { app, user, address } from './modules'
// vuex持久化插件：将vuex里的内容存储在本地
import persistence from 'vuex-uniapp-persistence'
import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    app,
    user,
    address
  },
  // 开启插件将vuex里的内容存储在本地
  plugins: [persistence()],
  state: {},
  mutations: {},
  actions: {},
  getters
})
